function s = lsqueeze(l)
% lsqueeze  - linear squeeze into Nx1 array
%
% FORMAT:       s = lsqueeze(d)
%
% Input fields:
%
%       d           N-dim data array (or transio)
%
% Output fields:
%
%       s           squeezed Nx1 array

% Version:  v0.7f
% Build:    8110521
% Date:     Nov-05 2008, 9:00 PM CET
% Author:   Jochen Weber, SCAN Unit, Columbia University, NYC, NY, USA
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% argument check (costs very little, less than try, catch, end at least!)
if nargin ~= 1
    error( ...
        'BVQXtools:BadArgument', ...
        'Bad or missing argument.' ...
    );
end

% use colon operator (faster than reshape, also resolves transio)
s = l(:);
